home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Internet Tools (InfoMagic)
/
Internet Tools.iso
/
dos_win
/
winsock
/
maillist
/
93-11.Z
/
93-11
/
000097_jnlin@netrd.net.tw_Thu Nov 25 10:25:13 1993.msg
< prev
next >
Wrap
Internet Message Format
|
1993-11-30
|
7KB
Received: from netrd.net.tw by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
id AA16719; Thu, 25 Nov 1993 20:30:03 -0500
Received: by netrd.net.tw (4.1/SMI-4.1)
id AA02357; Thu, 25 Nov 93 16:25:13 CST
Date: Thu, 25 Nov 93 16:25:13 CST
From: jnlin@netrd.net.tw (Jyun Naih Lin)
Message-Id: <9311250825.AA02357@netrd.net.tw>
To: winsock@sunsite.unc.edu
Subject: TCP socket and sendto() recvfrom()
According to the definition of Winsock Ver. 1.1. TCP socket can use
sendto() and recvfrom(), but Netmanage's Winsock.DLL disallows the user to
use sendto()and recvfrom() on the TCP socket. Why?
Lin
From jnlin@netrd.net.tw Thu Nov 25 10:00:50 1993
Received: from netrd.net.tw by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
id AA16731; Thu, 25 Nov 1993 20:30:09 -0500
Received: by netrd.net.tw (4.1/SMI-4.1)
id AA01795; Thu, 25 Nov 93 16:00:50 CST
Date: Thu, 25 Nov 93 16:00:50 CST
From: jnlin@netrd.net.tw (Jyun Naih Lin)
Message-Id: <9311250800.AA01795@netrd.net.tw>
To: winsock@sunsite.unc.edu
Subject: Question qbout getpeername() and getsockname()
Hi,
I have some questions:
(1) When I call getsockname() or getpeername() to get local ip or remote
ip and port. The return value of the port (sin_port) should be network byte
order or host byte order?
I use the Winsock.DLL of "Netmanage Company". Their Winsock.DLL returns
network byte order in getsockname(), but host byte order in getpeername().
(2) Could an UDP socket send data before it binds to an address?
I create an UDP socket and then call WSAAsyncSelect() to set FD_READ,
FD_WRITE, etc, to the UDP socket. Before I call bind(), Netmanage's Winsock.DLL
post a FD_WRITE message to my AP. Is it right?
(3) If I call WSAAsyncSelect() to set FD_CONNECT, FD_CLOSE, etc to a TCP
socket. When I call connect() to connect the TCP socket to an address which
has no socket listening. What event should I receive from Winsock.DLL?
FD_CONNECT or FD_CLOSE?
I receive FD_CLOSE event from Netmanage's Winsock.DLL. Is it right?
I think it should be FD_CONNECT and the error should be set in the lParam.
(4) What kind of buffer should I prepare before I call WSAAsyncGetXbyY()?
I should allocate a large block and pass it to the system, or I should allocate
spaces for each fields (such as name, aliases, etc). Could anyone give me an
example?
I call Netmanage's WSAAsyncGetXByY() and it cause a GPF in NMPCIP.DLL.
I do some unit tests in Netmanage's Winsock.DLL and find that they do
NOT check many conditions and cause errors. The product seems not to be desinged
fully compactable with Winsock Ver. 1.1.
Thank you for your assistance.
Lin Jyun-Naih
---------------------- jnlin@netrd.net.tw -------------------
From news@samba.oit.unc.edu Fri Nov 26 02:05:47 1993
Received: from samba.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
id AA19553; Thu, 25 Nov 1993 21:16:52 -0500
Return-Path: <news>
Received: by samba.oit.unc.edu (5.65/TAS/11-16-88)
id AA22226; Thu, 25 Nov 1993 21:08:01 -0500
Received: from GATEWAY by samba.oit.unc.edu with netnews
for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
To: winsock@SunSite.unc.edu
Date: Fri, 26 Nov 1993 02:05:47 GMT
From: peter@psychnet.psychol.utas.edu.au (Peter R. Tattam)
Message-Id: <peter.697.2CF5647B@psychnet.psychol.utas.edu.au>
Organization: Psychology Department, University of Tasmania
Sender: ses
References: <2cgi22$gvp@darkstar.UCSC.EDU>, <1993Nov19.223307.26461@jlc.mv.com>
Subject: Re: Winsock apps in DOS windows?
In article <1993Nov19.223307.26461@jlc.mv.com> jason@jlc.mv.com (Jason T. Nelson) writes:
>From: jason@jlc.mv.com (Jason T. Nelson)
>Subject: Re: Winsock apps in DOS windows?
>Date: Fri, 19 Nov 1993 22:33:07 GMT
>In article <2cgi22$gvp@darkstar.UCSC.EDU> banshee@cats.ucsc.edu (Wailer at the Gates of Dawn) writes:
>>
>>Is it possible to call winsock functions from a program running in a dos
>>window?
>>
>Should... I've got Trumpet IRC to work in a DOS window.
>============================================
>Jason T. Nelson jason@jlc.mv.com
>John Leslie Consulting jtn@mv.mv.com
>Milford, New Hampshire nelson@mhs.mv.com
>============================================
>"In war there is no substitute for victory."
> Douglas MacArthur
Not by winsock.... the dos version is direct to packet driver only.
Peter
----------------------------------------------------------------------------
P.Tattam International Phone 61-02-202346
Programmer, Psychology Department Australia Phone 002-202346
University of Tasmania, Hobart, Tasmania, Australia
----------------------------------------------------------------------------
From jnlin@netrd.net.tw Fri Nov 26 04:28:17 1993
Received: from netrd.net.tw ([140.92.61.55]) by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.06) with SMTP
id AA20177; Thu, 25 Nov 1993 21:28:40 -0500
Received: from [140.92.61.24] by netrd.net.tw (4.1/SMI-4.1)
id AA19285; Fri, 26 Nov 93 10:28:18 CST
Date: Fri, 26 Nov 93 10:28:17 CST
From: jnlin@netrd.net.tw (Jyun Naih Lin)
Message-Id: <9311260228.AA19285@netrd.net.tw>
Seednet_From: jnlin
To: winsock@sunsite.unc.edu
Subject: Questions and need answers
Cc: jnlin@netrd.net.tw
Hi,
I have some questions:
(1) When I call getsockname() or getpeername() to get local ip or remote
ip and port. The return value of the port (sin_port) should be network byte
order or host byte order?
I use the Winsock.DLL of "Netmanage Company". Their Winsock.DLL returns
network byte order in getsockname(), but host byte order in getpeername().
(2) Could an UDP socket send data before it binds to an address?
I create an UDP socket and then call WSAAsyncSelect() to set FD_READ,
FD_WRITE, etc, to the UDP socket. Before I call bind(), Netmanage's Winsock.DLL
post a FD_WRITE message to my AP. Is it right?
(3) If I call WSAAsyncSelect() to set FD_CONNECT, FD_CLOSE, etc to a TCP
socket. When I call connect() to connect the TCP socket to an address which
has no socket listening. What event should I receive from Winsock.DLL?
FD_CONNECT or FD_CLOSE?
I receive FD_CLOSE event from Netmanage's Winsock.DLL. Is it right?
I think it should be FD_CONNECT and the error should be set in the lParam.
(4) What kind of buffer should I prepare before I call WSAAsyncGetXbyY()?
I should allocate a large block and pass it to the system, or I should allocate
spaces for each fields (such as name, aliases, etc). Could anyone give me an
example?
I call Netmanage's WSAAsyncGetXByY() and it cause a GPF in NMPCIP.DLL.
(5) According to the definition of Winsock Ver. 1.1. TCP socket can use
sendto() and recvfrom(), but Netmanage's Winsock.DLL disallows the user to
use sendto()and recvfrom() on the TCP socket. Why?
I do some unit tests in Netmanage's Winsock.DLL and find that they do
NOT check many conditions and cause errors. The product seems not to be desinged
fully compactable with Winsock Ver. 1.1 .....
Thank you for your assistance.
Lin Jyun-Naih
---------------------- jnlin@netrd.net.tw -------------------